
// 导入
import ExcelJS from 'exceljs';

export default () => {
    // 创建工作薄
    const workbook = new ExcelJS.Workbook();

    // 设置工作簿属性
    workbook.creator = 'System';
    workbook.lastModifiedBy = 'System';
    workbook.created = new Date(2024, 7, 3);
    workbook.modified = new Date();
    workbook.lastPrinted = new Date(2024, 7, 3);
  
    // 将工作簿日期设置为 1904 年日期系统
    workbook.properties.date1904 = true;
  
  
    // 在加载时强制工作簿计算属性
    workbook.calcProperties.fullCalcOnLoad = true;
  
    workbook.views = [{
      x: 0,
      y: 0,
      width: 1000,
      height: 2000,
      firstSheet: 0,
      activeTab: 1,
      visibility: 'visible'
    }]


    return workbook;
}